<!DOCTYPE html>
<html lang="en">
<head>
    <#include "segment/header.html">
</head>
<body class="no-skin">
<#include "segment/navbar.html">
<script type="text/javascript" charset="utf-8" src="${basePath }/resources/ueditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="${basePath }/resources/ueditor/ueditor.all.min.js"> </script>
<script type="text/javascript" charset="utf-8" src="${basePath }/resources/ueditor/lang/zh-cn/zh-cn.js"></script>
<div class="main-container ace-save-state" id="main-container">
    <script type="text/javascript">
        try {
            ace.settings.loadState('main-container')
        } catch (e) {
        }
    </script>
    <div class="main-content">
        <div class="main-content-inner">
            <#include "segment/breadcrumbs.html">
            <#include "segment/sidebar.html">
            <div class="page-content">
                <div class="page-header">
                    <h1>
						  更新文章
	                    <small>
	                        <i class="ace-icon fa fa-angle-double-right"></i>
	 					${content.title}
	                    </small>
                    </h1>
                </div><!-- /.page-header -->
                <form class="form-horizontal" role="form" action="${basePath}/admin/article/update/${content.id}?pn=${pn}" method="post">
                    <div class="form-group">
                        <label class="col-sm-3 control-label no-padding-right"> 文章标题： </label>

                        <div class="col-sm-9">
                            <input type="text" name="title" value="${content.title}" class="col-xs-10 col-sm-5" />
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label no-padding-right"> 发布人： </label>

                        <div class="col-sm-9">
                            <input readonly type="text" name="username" value="${Session.user.nickName}" class="col-xs-10 col-sm-5" />
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label no-padding-right"> 发布部门： </label>
						<div class="col-sm-9">
							<select name="department">
					            <option value="${department.id}" selected="selected">${department.name}</option>
					        </select>
				        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label no-padding-right"> 文章内容： </label>

                        <div class="col-sm-9">
                            <script id="editor" type="text/plain" name="content" style="height: 400px;">${content.content}</script>
                            <script>
                            	var ue = UE.getEditor('editor');
                            </script>
                        </div>
                    </div>
                    <div class="clearfix form-actions">
                        <div class="col-md-offset-3 col-md-9">
                            <button class="btn btn-info" type="submit">
                                <i class="ace-icon fa fa-check bigger-110"></i>
								更新
                            </button>
                        </div>
                    </div>
                </form>
            </div><!-- /.page-content -->
        </div><!-- /.main-content-inner -->
    </div><!-- /.main-content -->
    <#include "segment/footer.html">
</div><!-- /.main-container -->
<#include "segment/scripts.html">
</body>
</html>
